home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Jul 89 / W0025-Re Setting Cursor-Jul89 < prev    next >
Encoding:
Text File  |  1989-07-12  |  1.4 KB  |  33 lines  |  [TEXT/GEOL]

  1. Item    6731586                         7-July-89        18:14
  2.  
  3. From:   ROSENSTEIN1                     Rosenstein, Larry
  4.  
  5. To:     D0286        -> LEARNINGWAYS    LearningWays, Rob Shaver, PRT
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    re Setting Cursor
  10.  
  11. Eric (via Curtis),
  12.  
  13. MacApp 2.0 will call WaitNextEvent if the call is available (which is always is
  14. under System 6.0.x).  WaitNextEvent suspends the application until either: (1)
  15. an event is available, (2) the cursor leaves a certain region, or (3) a certain
  16. length of time passes.  MacApp will not call you idle code while the
  17. application is suspended.  It is your responsibility to tell MacApp how often
  18. your program needs to get called.  You can do this in one of two ways.
  19.  
  20. First, you can set the fIdleFreq field of your Application, View, etc. object.
  21. This tells MacApp how often that object needs idle time.
  22.  
  23. In your case, however, you would want to use the mechanism provided in
  24. TView.DoSetCursor.  There is a region parameter, which MacApp passes to
  25. WaitNextEvent.  If the mouse is outside that region, then WaitNextEvent will
  26. return.  Since you want to get control as often as possible, you should set the
  27. region to an empty region (ie, a region that the mouse is never in).  You must
  28. also return TRUE as the result of DoSetCursor, to let MacApp know that you have
  29. changed the cursor.
  30.  
  31. Larry Rosenstein
  32.  
  33.